import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../views/login.vue'
import ChangePassword from '../views/changePassword.vue'
import UserInfo from '../views/userInfo.vue'
import Membership from '../views/membership.vue'
import Payment from '../views/payment.vue'
import PaymenTrecord from '../views/paymenTrecord.vue'
import LogOut from '../views/logOut.vue'
import WorkInfo from '../views/workInfo.vue'
import Register from '../views/register.vue'
import BasicInfo from '../views/basicInfo.vue'
import WorkAmend from '../views/workAmend.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Login',
    component: Login
  },
  {
    path: '/changePassword',
    name: 'ChangePassword',
    component: ChangePassword
  },
  {
    path: '/userInfo',
    name: 'UserInfo',
    component: UserInfo
  },
  {
    path: '/membership',
    name: 'Membership',
    component: Membership
  },
  {
    path: '/payment',
    name: 'Payment',
    component: Payment
  },
  {
    path: '/paymenTrecord',
    name: 'PaymenTrecord',
    component: PaymenTrecord
  },
  {
    path: '/logOut',
    name: 'LogOut',
    component: LogOut
  },
  {
    path: '/workInfo',
    name: 'WorkInfo',
    component: WorkInfo
  },
  {
    path: '/register',
    name: 'Register',
    component: Register
  },
  {
    path: '/basicInfo',
    name: 'BasicInfo',
    component: BasicInfo
  },
  {
    path: '/workAmend',
    name: 'WorkAmend',
    component: WorkAmend
  },
]

const router = new VueRouter({
  routes
})

export default router
